package com.atguigu.gmall.order.biz;

import com.atguigu.gmall.order.ov.OrderConfirmRespVo;
import com.atguigu.gmall.order.ov.OrderSubmitVo;

public interface OrderBizService {
    OrderConfirmRespVo getConfirmData();

    /**
     * 下订单
     * @param submitVo
     * @param tradeNo
     * @return
     */
    Long submitOrder(OrderSubmitVo submitVo, String tradeNo);

    /**
     * 关闭订单
     *
     * @param id
     * @param userId
     * @return
     */
    boolean closeOrder(Long id, Long userId);


    /**
     * 根据唯一的对外交易号和用户Id修改订单为已支付状态
     * @param out_trade_no
     * @param userId
     */
    void payedOrder(String out_trade_no, Long userId);
}
